<template>
  <el-form-item label="宽度">
    <el-input-number v-model.number="obj.width" :min="0"></el-input-number>
  </el-form-item>
  <el-form-item label="长度">
    <el-input-number v-model.number="obj.height" :min="0"></el-input-number>
  </el-form-item>
  <el-form-item label="背景颜色">
    <el-color-picker v-model="obj.color" />
  </el-form-item>
</template>

<script lang="ts">
export default {
  name: 'divConfig'
}
</script>

<script lang="ts" setup>
import { toRefs, defineProps } from 'vue'
import { type Basis } from '@/types/element'
const props = defineProps<{
  obj: Basis
}>()
const { obj } = toRefs(props)
</script>
